package com.wsj.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.wsj.dao.IHomeSiteAreaMessageDao;
import com.wsj.service.IHomeSiteAreaMessageServ;
import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.subclass.displayBean.homeSiteAreaMessage.HomeSiteAreaMessageExtendBean;
import com.wsj.web.vo.homeSite.HomeSiteAreaMessage;

public class HomeSiteAreaMessageServImpl implements IHomeSiteAreaMessageServ {
	
	private IHomeSiteAreaMessageDao homeSiteAreaMessageDaoImpl;

	public boolean add(HomeSiteAreaMessage homeSiteAreaMessage)
			throws BusinessException {
		// TODO Auto-generated method stub
		this.homeSiteAreaMessageDaoImpl.add(homeSiteAreaMessage);
		
		return true;
	}

	public boolean delete(Integer id) throws BusinessException {
		// TODO Auto-generated method stub
		
		this.homeSiteAreaMessageDaoImpl.delete(id);
		return true;
	}

	public HomeSiteAreaMessage loadByID(Integer id) throws BusinessException {
		// TODO Auto-generated method stub
		HomeSiteAreaMessage homeSiteAreaMessage=this.homeSiteAreaMessageDaoImpl.loadByID(id);
		
		return homeSiteAreaMessage;
	}

	public PageResultSet loadHomeSiteAreaMessageByExtendBean(HomeSiteAreaMessageExtendBean extBean)
			throws BusinessException {
		// TODO Auto-generated method stub
		PageResultSet pageResultSet=null;
		
		pageResultSet=this.homeSiteAreaMessageDaoImpl.loadHomeSiteAreaMessageByExtendBean(extBean);
		
		return pageResultSet;
	}

	public boolean update(HomeSiteAreaMessage homeSiteAreaMessage)
			throws BusinessException {
		// TODO Auto-generated method stub
		this.homeSiteAreaMessageDaoImpl.update(homeSiteAreaMessage);
		return true;
	}

	public IHomeSiteAreaMessageDao getHomeSiteAreaMessageDaoImpl() {
		return homeSiteAreaMessageDaoImpl;
	}

	public void setHomeSiteAreaMessageDaoImpl(
			IHomeSiteAreaMessageDao homeSiteAreaMessageDaoImpl) {
		this.homeSiteAreaMessageDaoImpl = homeSiteAreaMessageDaoImpl;
	}

	public List loadHomeSiteAreaMessageList(HomeSiteAreaMessageExtendBean areaMessExtend) throws BusinessException {
		// TODO Auto-generated method stub
		List list=new ArrayList();
		list=this.homeSiteAreaMessageDaoImpl.loadHomeSiteAreaMessageList(areaMessExtend);
		return list;
	}

}
